<#include "../header.html">
<script type="text/javascript">
function setPopupValue(){
	var retObj = JFT.TableBind.getCheckObject("dataId");
	if(!retObj){
		return false;
	}
	var html = retObj["userId"];
	var userId = $(html).val();
	return {"account": retObj["account"], "userId":userId ,"userName":retObj["userName"],"uplevel":retObj["uplevel"] };
}
</script>
<div class="c_box bg_white">
    <form name="queryForm" id="queryForm" action="userAction.do?method=queryUserAlert" method="post">
	<div id="dataQueryArea" class="c_form_3">
		<ul class="c_form-label-5 l_mb">
			<li>
				<span class="e_label">用户账号：</span>
				<span class="e_input">
					<input type="text" name="account" id="account" desc="用户账号" value="${account!}"/>
				</span>
			</li>
			<li>
				<span class="e_label">用户名称：</span>
				<span class="e_input">
					<input type="text" name="userName" id="userName" desc="用户名称" value="${userName!}"/>
				</span>
			</li>
			<li>
				<button type="button" bind="query" bindForm="queryForm" class="l_ml e_btn-form">查询</button>
			</li>
			<li></li>
		</ul>
	</div>
    </form>
	<input type="hidden" id="queryParams" name="queryParams" value="${queryParams!}"/>
	<!-- 如果需要横向滚动条加c_scroll_tr -->
	<div class="c_table e_center l_mt">
		<table bind="table" checkboxName="dataId" checkAllId="checkedAll">
        	<thead>
			<tr>
				<th><input type="checkbox" id="checkedAll" name="checkedAll"/></th>
				<th>用户名称</th>
				<th>用户账号</th>
				<th>用户性别</th>
			</tr>
            </thead>
            <tbody>
           	<#list userList as user>
            <tr>
				<input type="hidden" name="uplevel" value="${user.UPLEVEL!}">
            	<td name="userId">
					<input type="checkbox" name="dataId" value="${user.ID!}">
				</td>
            	<td name="userName">${user.USER_NAME!}</td>
            	<td name="account">${user.ACCOUNT!}</td>
				<td><#if user.SEX?? && user.SEX == 0><#elseif user.SEX?? && user.SEX == 1>男<#elseif user.SEX?? && user.SEX == 2>女<#else></#if></td>
				<td name="uplevel" style="display: none;">${user.UPLEVEL!}</td>
            <tr>
            </#list>
            </tbody>
		</table>
	</div>	
	<@page/>
</div>
<#include "../footer.html">